package org.kl.auditsupervision.repository.fnd;

import java.util.List;

import org.kl.auditsupervision.entity.fnd.AuditProDtl;
import org.kl.bf.repository.BasicDao;

public interface AuditProDtlDao extends BasicDao<AuditProDtl>
{
	public List<AuditProDtl> findByAuditProId(String auditproId);
	public AuditProDtl findByProcessInstanceId(String processInstanceId);
	public List<AuditProDtl> findByAuditProIdAndAuditEvaluationNo(String auditProId,String auditEvaluationNo);
	public List<AuditProDtl>  findByAuditProIdAndAuditEvaluationNoAndAuditFindingNo(String auditProId,String evaluaitonNo,String auditFindingNo);
	
	/*@Modifying
	@Query("update ACT_HI_TASKINST t set assignee_=?1  where t.proc_inst_id_=?2 and delete_reason_ is null")
	public int updateTaskinst(String assignee_,String proc_inst_id_);
	
	@Modifying
	@Query("update act_ru_task t set assignee_=?1 where execution_id_=?2 ")
	public int updateTask(String assignee_,String execution_id_);*/
	
	public List<AuditProDtl>  findByConfirmFlag(Integer confirmFlag);
}
